package com.rainbow.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.rainbow.base.RainbowBaseEntity;
import com.rainbow.common.constant.CommonConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * Auth rainbow
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("t_department_header")
@ApiModel(value = "部门负责人")
public class DepartmentHeader extends RainbowBaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "关联部门id")
    private String departmentId;

    @ApiModelProperty(value = "关联部门负责人")
    private String userId;

    @ApiModelProperty(value = "负责人类型 默认0主要 1副职")
    private Integer type = CommonConstant.HEADER_TYPE_MAIN;

}
